#include "main.h"

void recv_msg(int netFD){
    char buf[1024] = { 0 };
    int ret = recv(netFD, buf, sizeof(buf), 0);
    ERROR_CHECK(ret, -1, "recv_recvMsg.c");

    ret = write(STDOUT_FILENO, buf, strlen(buf));
    ERROR_CHECK(ret, -1, "write_recvMsg.c");
}
